local ads__guying = fk.CreateSkill({
  name = "ads__guying",
  tags = { Skill.Compulsory },
})

ads__guying:addEffect(fk.AfterCardsMove, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    if not player:hasSkill(ads__guying.name) then return end
    if player:isKongcheng() then return end
    for _, move in ipairs(data) do
      if move.to and move.to ~= player and move.toArea == Card.PlayerHand then
        return true
      end
    end
  end,
  on_use = function(self, event, target, player, data)
    local target = data[1].to
    if target and target:isAlive() and not target:isKongcheng() then
      player.room:askToDiscard(target, {
        min_num = 1,
        max_num = 1,
        skill_name = ads__guying.name,
        include_equip = false,
        cancelable = false,
      })
    end
  end,
})

Fk:loadTranslationTable{
  ["$ads__guying1"] = "牌不是万能的，但是没牌是万万不能的。",
  ["$ads__guying2"] = "旧的不去，新的不来。",
  ["ads__guying"] = "孤营",
  [":ads__guying"] = "锁定技，当其他角色获得手牌后，若你有手牌，其弃一张牌。",
}

return ads__guying
